home *** CD-ROM | disk | FTP | other *** search
/ Flushed Away Press Kit / FLUSHED AWAY.iso / pc / main.dxr / SCRIPTS_47_puppetSound (mouseUp).ls < prev    next >
Encoding:
Text File  |  2006-10-04  |  602 b   |  20 lines

  1. property soundEffect, channelNumber
  2.  
  3. on getPropertyDescriptionList
  4.   description = [:]
  5.   soundList = []
  6.   repeat with i = 1 to the number of castMembers
  7.     if member(i, 0).type = #sound then
  8.       soundList.add(member(i, 0).name)
  9.     end if
  10.   end repeat
  11.   addProp(description, #soundEffect, [#default: EMPTY, #format: #string, #comment: "play sound:", #range: soundList])
  12.   addProp(description, #channelNumber, [#default: 3, #format: #integer, #comment: "sound channel:", #range: [1, 2, 3]])
  13.   return description
  14. end
  15.  
  16. on mouseEnter me
  17.   channelNumber = 3
  18.   puppetSound(soundEffect, channelNumber)
  19. end
  20.